package com.cnswhy.cloud.server.core.dto;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2020-09-30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "IntegralLogUpdateDTO", description = "")
public class IntegralLogUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "")
    @NotNull(message = "不能为空")
    private Long id;
    @ApiModelProperty(value = "")
    @NotNull(message = "不能为空")
    private Long customerId;
    @ApiModelProperty(value = "")
    @Length(max = 11, message = "长度不能超过11")
    private String phoneNo;
    /**
     * 1贡献值2拼团值
     */
    @ApiModelProperty(value = "1贡献值2拼团值")
    private Integer integralType;
    /**
     * 关联订单号
     */
    @ApiModelProperty(value = "关联订单号")
    @Length(max = 50, message = "关联订单号长度不能超过50")
    private String orderNo;
    @ApiModelProperty(value = "")
    private BigDecimal integralNum;
    @ApiModelProperty(value = "")
    private LocalDateTime createDate;
    /**
     * 账户余额
     */
    @ApiModelProperty(value = "账户余额")
    private BigDecimal balance;
    @ApiModelProperty(value = "")
    private Long priceId;
    @ApiModelProperty(value = "")
    @Length(max = 100, message = "长度不能超过100")
    private String priceTitle;
}
